package com.wn.ziroombackend.mapper;

import com.wn.ziroombackend.entity.Incomeorder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wn.ziroombackend.vo.IncomeVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wangzhijia
 * @since 2023-02-27 10:56:29
 */
@Mapper
public interface IncomeorderMapper extends BaseMapper<Incomeorder> {

    List<IncomeVo> selectByPage(@Param("quartersName") String quartersName,  @Param("ownerName") String ownerName, @Param("status")  int status);

    @Update("update t_incomeorder set status = 1 where id =#{id}")
    void updateByid(Integer id);
}
